package com.dinkshow.dinkshow.user.service;

import com.dinkshow.dinkshow.user.model.User;
import com.dinkshow.dinkshow.util.PageCondition;
import com.dinkshow.dinkshow.util.Pager;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author yuwc
 * @description 用户业务层处理
 * @data 2019/5/21 0021下午 2:45
 */
public interface IUserService {
    void save(User user);

    User getOne(Long id);

    void delete(Long id);

    Page<User> getPage(Pageable pageable, User user);

    Pager<User> getPager(PageCondition condition, User user);

    List<User> findByCustomSqlTest1(User user);

    List<User> findByCustomSqlTest2(User user);

    User jpaName(User userQueryVo);

    Page<User> jpaPageSelect(PageCondition condition, User user);

    Page<User> jpaSpecificationTest1(PageCondition condition, User user);

    Page<User> jpaSpecificationTest2(PageCondition condition, User user);

}
